//
//  XFYScrollView.h
//  SDKSample
//
//  Created by 小肥羊 on 15/7/10.
//  Copyright (c) 2015年 Zhu‘s Game House. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NSTimer+Addition.h"

@class XFYScrollView;
@protocol XFYScrollViewDelegate <NSObject>
- (void)clickScrollView:(XFYScrollView *)scrollView PageIndex:(NSInteger)pageIndex;
@end


@interface XFYScrollView : UIView <UIScrollViewDelegate>

@property (nonatomic, strong) UIScrollView *scrollView;
@property (nonatomic, strong) UIPageControl *pageControl;
@property (nonatomic, strong) NSMutableArray *contentViews;
@property (nonatomic, strong) UIScrollView *firstView;
@property (nonatomic, strong) NSTimer *animationTimer;
@property (nonatomic, assign) NSTimeInterval animationDuration;
@property (nonatomic) NSInteger currentPage;

- (id)initWithFrame:(CGRect)frame animationDuration:(NSTimeInterval)animationDuration;
@property (nonatomic, retain) id <XFYScrollViewDelegate> clickScrollViewDelegate;
@end
